package com.ruoyi.radar.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.radar.common.CommonUtil;
import com.ruoyi.radar.domain.RadarSplit;
import com.ruoyi.radar.service.RadarSplitService;
import com.ruoyi.radar.mapper.RadarSplitMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
* @author BD
* @description 针对表【radar_split】的数据库操作Service实现
* @createDate 2025-01-10 13:38:50
*/
@Service
public class RadarSplitServiceImpl extends ServiceImpl<RadarSplitMapper, RadarSplit>
    implements RadarSplitService{

    @Autowired
    private RadarSplitMapper radarSplitMapper;

    @Autowired
    CommonUtil commonUtil;

    @Override
    public List<RadarSplit> selectSiloSplit(Map<String, Object> param) {
        if(!"1".equals(param.get("type"))){
            commonUtil.toPage(param);
        }
        List<RadarSplit> radarSplits = radarSplitMapper.selectSiloSplit(param);
        return radarSplits;
    }

    @Override
    public Integer getCount(Map<String, Object> param) {
        return radarSplitMapper.getCount(param);
    }
}




